package com.nnnu.wsnackshop.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
@Schema(description = "添加角色dto")
public class AddRoleDTO {
    @NotBlank(message = "角色名不能为空")
    @Size(max = 50)
    @Schema(description = "角色名", required = true, example = "manager")
    private String name;

    @Size(max = 255)
    @Schema(description = "角色描述", example = "普通管理员")
    private String description;
}
